import React from 'react'
// ===================================================================== Temp
import FormModal from '#cpt/temp/FormModal'
// ===================================================================== component
class Index extends React.Component{
	state = {
		data: [],
		// 条码作废
		formData:[
			{ label: '文件名称',	full:true,	name: 'file_name' }
		],
	}
	submit = {}
	open = (row)=> {
		const { uuid, id } = row
		this.submit = { uuid, folder_id:id }
		this.modal.open({formRef: this.formRef})
	}
	
	render(){
		return FormModal.call(this, {title:'重命名', labelWidth:'s5', width:600, api:'doc-file-list/rename',
			onRefresh:()=> this.props.onRefresh()
		} )
	}
}

export default Index